package com.xzy.urp.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xzy
 * @since 2022-02-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CourseInfo对象", description="")
public class CourseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "课程id")
      @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "课程名")
    private String name;

    @ApiModelProperty(value = "学分")
    private Double credits;

    @ApiModelProperty(value = "开设院系id")
    private Integer deptId;

    @ApiModelProperty(value = "教师id")
    private Integer teacherId;

    @ApiModelProperty(value = "考试类型")
    private String examType;

    @ApiModelProperty(value = "课总量")
    private Integer total;

    @ApiModelProperty(value = "课余量")
    private Integer surplus;

    @ApiModelProperty(value = "学年学期")
    private Integer semester;

    @ApiModelProperty(value = "可选院系")
    private Integer optionalDeptId;

    @ApiModelProperty(value = "可选年级")
    private String grade;

    @ApiModelProperty(value = "逻辑删除(1: 已删除，0: 未删除)")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;


}
